package com.edu.factory;

import com.edu.HandlerDefinition;

public class WebHandlerFactory implements HandlerFactory {


    @Override
    public Object createHandler(HandlerDefinition definition) {
        try {
            if (definition!=null){
                return definition.getClazz().newInstance();
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }

}
